package org.zjvis.datascience.service.mapper;

import org.springframework.stereotype.Component;
import org.zjvis.datascience.common.dto.gis.GisLayersDTO;

import java.util.List;

@Component
public interface GisLayersMapper {

    String queryTbNameByLayerId(Long layerId);

    Long getMaxOrder(Long userId, Long tabId);

    List<GisLayersDTO> queryLayersByTabId(Long tabId);

    boolean deleteLayerByTabId(Long tabId);

    List<String> queryLayerNamesByTabId(Long tabId);

    boolean save(GisLayersDTO layer);

    boolean deleteLayerByLayerId(Long layerId);

    GisLayersDTO queryLayerInfoById(Long layerId);

    boolean update(GisLayersDTO layer);

    String getLayerViewById(Long layerId);

    List<Long> queryLayerIds(Long userId, Long tabId);

    Long checkLayer(String tbName);

    List<Long> queryOrdersByTabId(Long tabId);

    boolean copyLayers(Long tabId, Long copyTabId);

    String queryLayerNameById(Long layerId);

}
